# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=rpg-cli
pkgver=1.0.1
pkgrel=0
pkgdesc="Your filesystem as a dungeon!"
url="https://github.com/facundoolano/rpg-cli"
license="MIT"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/facundoolano/rpg-cli/archive/$pkgver/rpg-cli-$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/rpg-cli "$pkgdir"/usr/bin/rpg-cli
}

sha512sums="
bc255daf4f1bfae68c5d0fe5dec79d86ea6f2d59384537836a99063bfdcae4219d40c859904c50e60b4a025736520c0eb6468ca520a3abce5b506407e6b4bbe3  rpg-cli-1.0.1.tar.gz
"
